<?php
    
    require_once '../framework/config.php';

    require_once('simpletest/unit_tester.php');
    require_once('simpletest/reporter.php');

    $test = &PEAR::getStaticProperty('CONFIG_INI','TEST');
    ini_set("max_execution_time",$test['max_execution_time']);

    $test = new TestSuite('All file tests');

    $test->addTestFile('AdminAddCodeTest.php');
    $test->addTestFile('AdminEditCodeTest.php');
    $test->addTestFile('AdminCodeListTest.php');
    $test->addTestFile('AdminMenuTest.php');
    $test->addTestFile('AdminAuthTest.php');
    $test->addTestFile('AdminSendCodeTest.php');
    $test->addTestFile('PDFTest.php');
    $test->addTestFile('HuntCodeTest.php');
    $test->addTestFile('ScoreBoardTest.php');
    $test->addTestFile('CodeListTest.php');
    $test->addTestFile('ShowCodeTest.php');
    $test->addTestFile('TwitterTest.php');
    $test->addTestFile('EmailTest.php');
    $test->addTestFile('LocalizationTest.php');
    $test->addTestFile('LogoutTest.php');
    $test->addTestFile('InfoTest.php');

    if ( isset($_SERVER["HTTP_HOST"]) )
    {
        $reporter  = new HtmlReporter(); 
    }

    $reporter = isset($reporter) ? $reporter : (new TextReporter()) ;
    $test->run( $reporter  );
?>


